package com.aspose.cells.b.a;

import java.text.NumberFormat;
import java.text.ParseException;

public class zt {
   public static short a(String var0, com.aspose.cells.b.a.c.za var1) {
      NumberFormat var2 = NumberFormat.getInstance(var1.h());

      try {
         return ((Long)var2.parse(var0.trim())).shortValue();
      } catch (ParseException var4) {
         throw new NumberFormatException("Failed to parse string[]" + var0 + " into a number");
      }
   }
}
